package com.quanxiaoha.xiaohashu.user.biz.enums;


import lombok.AllArgsConstructor;
import lombok.Getter;

import java.util.Objects;

/**
 * @Author: jingyan_liu
 * @CreateTime: 2025-07-21
 * @Description:
 * @Version: 1.0
 */


@Getter
@AllArgsConstructor
public enum SexEnum {
	
	WOMAN(0),
	MAN(1);
	
	private final Integer value;
	
	public static boolean isValid(Integer value) {
		for (SexEnum loginTypeEnum : SexEnum.values()) {
			if (Objects.equals(value, loginTypeEnum.getValue())) {
				return true;
			}
		}
		return false;
	}
	
}